<?php
// Meniu "Atsiusti"
$meniu_atsiusti = array('Atsiųsti naujieną' => '?id,1', 'Atsiųsti pamoką' => '?id,2', 'Atsiųsti scriptą' => '?id,3', 'Atsiųsti straipsnį' => '?id,4');

// Meniu "Navigacija"
//$meniu_pagrindinis = array('MightMedia Tm' => '?id,5', 'Projektai' => '?id,6', 'Pastebin' => '?id,7', 'Nariai' => '?id,8', 'Nuorodos' => '?id,9', 'Paieška' => '?id,10');
$meniu_pagrindinis = array('Siųstis' => '?id,6', 'CodeBin' => '?id,7','Nuorodos' => '?id,9');

// Meniu "PHP Funkcijos"
$meniu_refer = array('Masyvai' => '?id,11', 'MySQL DB' => '?id,12', 'Data ir laikas' => '?id,13', 'Paveikliukai' => '?id,14', 'Matematiniai veiksmai' => '?id,15', 'Sesijos ir Sausainėliai' => '?id,16', 'Teksto formatavimas' => '?id,17', 'Kita' => '?id,18');

// Meniu "Pamokos"
$meniu_pamokos = array('mIRC' => '?id,19', 'PHP' => '?id,20', 'JavaScript' => '?id,21');

//Meniu "Forumas" ir submeniu
/*
$meniu_sql = mysql_query1("SELECT `id`, `pav` FROM `d_forumai` LIMIT 0 , 30");
while($row = mysql_fetch_assoc($meniu_sql)) {
	$meniu_sql1 = mysql_query1("SELECT `id`, `pav` FROM `d_temos` WHERE fid=".$row['id']." LIMIT 0,30");
	$meniu_forumas['<img src="images/icons/bullet2.gif" style="vertical-align: middle;" alt="o" border="0"> Pagrindinis'] = "?id,25";
	while($row1 = mysql_fetch_assoc($meniu_sql1)) {
		$meniu_forumas1[$row1['pav']] = "?id,25;t,".$row1['id'];
	}
	$meniu_forumas[$row['pav']] = $meniu_forumas1;
	unset($meniu_forumas1);
}
*/
//Meniu "Straipsniai"
$sql = mysql_query1("SELECT * FROM s_temos");
	while ($row = mysql_fetch_assoc($sql)) {
		$meniu_straipsniai[$row['pav']] = "?id,22;s," . $row['id'];
	}
/*
$meniu = array(
'<img src="images/icons/bullet2.gif" border="0" style="vertical-align: middle;" alt="o" /> <b>Pagrindinis</b>' => $_SERVER['PHP_SELF'],
'<img src="images/icons/bullet2.gif" border="0" style="vertical-align: middle;" alt="o" /> Navigacija' => $meniu_pagrindinis,
'<img src="images/icons/bullet2.gif" border="0" style="vertical-align: middle;" alt="o" /> Pamokos' => $meniu_pamokos,
'<img src="images/icons/bullet2.gif" border="0" style="vertical-align: middle;" alt="o" /> Straipsniai' => $meniu_straipsniai,
'<img src="images/icons/bullet2.gif" border="0" style="vertical-align: middle;" alt="o" /> Forumas' => $meniu_forumas,
'<img src="images/icons/bullet2.gif" border="0" style="vertical-align: middle;" alt="o" /> Atsiusti' => $meniu_atsiusti,
'<img src="images/icons/bullet2.gif" border="0" style="vertical-align: middle;" alt="o" /> PHP Funkcijos' => $meniu_refer
);*/

$meniu = array(
'<img src="images/icons/bullet2.gif" border="0" style="vertical-align: middle;" alt="o" /> <b>Pagrindinis</b>' => $_SERVER['PHP_SELF'],
'<img src="images/icons/bullet2.gif" border="0" style="vertical-align: middle;" alt="o" /> Navigacija' => $meniu_pagrindinis,
'<img src="images/icons/bullet2.gif" border="0" style="vertical-align: middle;" alt="o" /> Straipsniai' => $meniu_straipsniai,
'<img src="images/icons/bullet2.gif" border="0" style="vertical-align: middle;" alt="o" /> Forumas' => '?id,25'
);
$menu = th_meniu($meniu,'<div class="suckerdiv"><ul id="suckertree1">','</ul></div>');
lentele("Meniu",$menu);
unset($sql);
?>
